package com.alibam.core.wechat.pay;

import javax.xml.bind.annotation.XmlTransient;

/**
 * 扫描二维码返回结果
 *
 */
@javax.xml.bind.annotation.XmlRootElement(name = "xml")
public class QrcodePayResponse {

	private String return_code;
	
	private String return_msg;
	
	private String appid;
	
	private String mch_id;
	
	private String nonce_str;
	
	private String prepay_id;
	
	private String result_code;
	
	private String err_code_des;
	
	private String sign;

	@javax.xml.bind.annotation.XmlElement(name = "return_code")
	public String getReturn_code() {
		return return_code;
	}

	public void setReturn_code(String return_code) {
		this.return_code = return_code;
	}

	@javax.xml.bind.annotation.XmlElement(name = "return_msg")
	public String getReturn_msg() {
		return return_msg;
	}

	public void setReturn_msg(String return_msg) {
		this.return_msg = return_msg;
	}

	@javax.xml.bind.annotation.XmlElement(name = "appid")
	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	@javax.xml.bind.annotation.XmlElement(name = "mch_id")
	public String getMch_id() {
		return mch_id;
	}

	public void setMch_id(String mch_id) {
		this.mch_id = mch_id;
	}

	@javax.xml.bind.annotation.XmlElement(name = "nonce_str")
	public String getNonce_str() {
		return nonce_str;
	}

	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
	}

	@javax.xml.bind.annotation.XmlElement(name = "prepay_id")
	public String getPrepay_id() {
		return prepay_id;
	}

	public void setPrepay_id(String prepay_id) {
		this.prepay_id = prepay_id;
	}

	@javax.xml.bind.annotation.XmlElement(name = "result_code")
	public String getResult_code() {
		return result_code;
	}

	public void setResult_code(String result_code) {
		this.result_code = result_code;
	}

	@javax.xml.bind.annotation.XmlElement(name = "err_code_des")
	public String getErr_code_des() {
		return err_code_des;
	}

	public void setErr_code_des(String err_code_des) {
		this.err_code_des = err_code_des;
	}

	@javax.xml.bind.annotation.XmlElement(name = "sign")
	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public QrcodePayResponse(String return_code, String return_msg,
			String appid, String mch_id, String nonce_str, String prepay_id,
			String result_code, String err_code_des, String sign) {
		super();
		this.return_code = return_code;
		this.return_msg = return_msg;
		this.appid = appid;
		this.mch_id = mch_id;
		this.nonce_str = nonce_str;
		this.prepay_id = prepay_id;
		this.result_code = result_code;
		this.err_code_des = err_code_des;
		this.sign = sign;
	}

	public QrcodePayResponse(String return_code, String return_msg) {
		super();
		this.return_code = return_code;
		this.return_msg = return_msg;
	}
	
	@XmlTransient
	public String[] getCDataNode() {
		String[] cDataNodes = {return_code , return_msg};
		return cDataNodes;
	}

	public QrcodePayResponse() {
		super();
	}

}
